from selenium.webdriver.common.by import By

from autoTest_ecshop.base_page.base import BasePage


class SearchProductsPage(BasePage):
    # 添加购物按钮定位器
    shop_loc = (By.XPATH, '//*[@id="compareForm"]/div/div/div[1]/a[1]')

    def selectProduct(self):
        self.btn_click(self.shop_loc)